// @import url('~ant-design-vue/dist/antd.less');
// @import url('ant-design-vue/dist/antd.less');
@import url('ant-design-vue/dist/antd.variable.less');
@import url('./antd-variables.less');
@import url('./variables.less');

#nprogress .bar {
  background: @primary-color !important;
}

.text-align-right {
  text-align: right;
}

/* stylelint-disable-next-line selector-class-pattern */
.scrollbar(
  @thumb-background: hsla(0,0%,100%,0.2),
  @thumb-shadow: hsla(0,0%,100%,0.05),
  @track-background:hsla(0,0%,100%,0.15),
  @track-shadow: rgba(37,37,37,0.05)
) {
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  ::-webkit-scrollbar-thumb {
    background: @thumb-background;
    border-radius: 3px;
    box-shadow: inset 0 0 5px @thumb-shadow;
  }

  ::-webkit-scrollbar-track {
    background: @track-background;
    border-radius: 3px;
    box-shadow: inset 0 0 5px rgb(37 37 37 / 5%);
  }
}

.scrollbar-light {
  .scrollbar(
    hsla(0,0%,0%,0.2), hsla(0,0%,0%,0.05),
    hsla(0,0%,0%,0.15), rgba(255,255,255,0.05)
  );
}

// 查询表格页
.list-search-table {
  position: relative;
  height: 100%;
  padding: 16px;
  background-color: #fff;

  &-filter {
    position: relative;
    // padding: 16px;
    // padding-bottom: 16px;
    margin-bottom: 16px;
  }

  &-pagination {
    position: absolute;
    right: 16px;
    bottom: 16px;
    // float: right;
    // margin-top: 16px;
  }

  .ant-table-wrapper {
    // height: inherit;
    .ant-spin-nested-loading {
      // height: inherit;
      .ant-spin-container {
        // height: inherit;
        //
        .ant-table {
          // position: relative;
          // height: calc(100% - 64px);
          // overflow: auto;
          .ant-table-title {
            // position: relative;
          }
        }
        // .ant-pagination{
        //   margin: 0;
        //   padding: 16px 0;
        // }
      }
    }
  }
}
